import React, { PropTypes, PureComponent } from 'react';
import { Table } from 'antd';

export default class ChartTable extends PureComponent {
  render() {
    const { chartTableData } = this.props;
    const columns = [
      {
		    title: '排名',
		    dataIndex: 'indexID',
		    key: 'indexID',
		  },
		  {
		    title: '交易员ID',
		    dataIndex: 'tradeID',
		    key: 'tradeID',
		  },
		  {
		    title: 'FDT Score',
		    dataIndex: 'FDT',
		    key: 'FDT',
		  },
		  {
		    title: '交易天数',
		    dataIndex: 'tradedaynum',
		    key: 'tradedaynum',
		  },
		  {
		    title: '日均盈利',
		    dataIndex: 'rijunyingli',
		    key: 'rijunyingli',
		  },
		  {
		    title: '投入收益比',
		    dataIndex: 'tourushouyibi',
		    key: 'tourushouyibi',
		  },
		  {
		    title: '最大单笔损失',
		    dataIndex: 'maxsunshi',
		    key: 'maxsunshi',
		  },
		  {
		    title: '平均盈利效率',
		    dataIndex: 'pingjunyinglilv',
		    key: 'pingjunyinglilv',
		  },
		  {
		    title: '连续赢天数',
		    dataIndex: 'lianxutianshu',
		    key: 'lianxutianshu',
		  },
		  {
		    title: '盈利效率 sharpe-ratio',
		    dataIndex: 'yinglixiaolv',
		    key: 'yinglixiaolv',
		  },
		  {
		    title: '盈利效率VaR',
		    dataIndex: 'yinglixiaolv2',
		    key: 'yinglixiaolv2',
		  },
    ];
    return (
      <Table columns={columns} dataSource={chartTableData} pagination={false} />
    );
  }
}
